<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"> 

<h:head>
	<title>Guestbook</title>
</h:head> 
<body> 
<!-- <h:outputText value="#{GuestbookBean.entries}" escape="false"/> -->

<ui:repeat value="#{GuestbookBean.entryList}" var="item">
    <div>
    	<div>(#{item.id}) - #{item.date} #{item.name}</div>
    	<div>#{item.message}</div>
    </div>
    <hr />
</ui:repeat>

<div id="form">

<h:form>
Name: <h:inputText value="#{GuestbookBean.entry.name}" /><br />
Nachricht: <h:inputTextarea value="#{GuestbookBean.entry.message}" /><br />
<h:commandButton value="Submit" action="#{GuestbookBean.addComment()}"></h:commandButton>
</h:form>

</div>
</body> 
</html>
